'Error parsing XSLT' after installing umbraco [commerce]?
hi,
Newbie in umbraco here - so far so good. I installed the umbraco commerce module, and after this my xslt topmenu no longer works - it just displays Error parsing XSLT. Any ideas as to what could have gone wrong?
The xslt is standar and taken from the runway module (changed nothing and had i working before i installed commerce module).
Sounds weird, a parsing error should only occur if theres a syntax error in the xslt-code. I'd suggest you double check your xslt-file. Are you able to save it, or does it display an error when saving the file.
Try adding ?umbdebugshowtrace=true to the end of the url where the error occurs, this will output detailed error messages to the end of the page, then post the output here, if the error is not self-explaining.
I am using this line to call the xslt; <umbraco:Macro Alias="TopMenu" runat="server" />. When i remove this line from the master the error disapers but of course no top menu. When i insert it again the error apears again. In Macros in umbraco there is a "TopMenu" item calling "TopMenu.xslt" (name and alias TopMenu).
Just tried using a couple of other xslt instead (standard xslt from umbraco (xsltsearch etc.)) - each and everyone one of them fails - same message, :-s
Hmm - something interesting showed up now, Tried to change the name of the xslt file in umbraco and this error showed;
Error occured
System.Exception: Could not load type CommerceForUmbraco.xsltExtensions.product (C:\data\websites\bin\CommerceForUmbraco.xsltExtensions.dll) for XSLT extension C:\data\websites\bin\CommerceForUmbraco.xsltExtensions.dll. Please check config/xsltExentions.config. at umbraco.macro.GetXsltExtensions() at umbraco.macro.AddMacroXsltExtensions() at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
'Error parsing XSLT' after installing umbraco [commerce]?
hi,
Newbie in umbraco here - so far so good. I installed the umbraco commerce module, and after this my xslt topmenu no longer works - it just displays Error parsing XSLT. Any ideas as to what could have gone wrong?
The xslt is standar and taken from the runway module (changed nothing and had i working before i installed commerce module).
Sounds weird, a parsing error should only occur if theres a syntax error in the xslt-code. I'd suggest you double check your xslt-file. Are you able to save it, or does it display an error when saving the file.
Regards
.Hauge
Able to save without any problems and errors - there should be nothing wrong with the xslt, but just to doublecheck i will post it here;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes" />
<xsl:param name="currentPage"/>
<!-- Input the documenttype you want here -->
<xsl:variable name="level" select="1"/>
<xsl:template match="/">
<!-- The fun starts here -->
<ul>
<xsl:for-each select="$currentPage/ancestor-or-self::node [@level=$level]/node [string(data [@alias='umbracoNaviHide']) != '1']">
<li>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>
</li>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:stylesheet>
Nothing wrong there as far as I can tell.
Try adding ?umbdebugshowtrace=true to the end of the url where the error occurs, this will output detailed error messages to the end of the page, then post the output here, if the error is not self-explaining.
Regards
.Hauge
I can see nothing out of the ordinary in the trace - no specific error messages displayed anywhere.
There are a few possibe areas to check:
Have any new nodes been added to the content tree that would be picked up by your Top Nav.
Do they have special characters in them i.e. > or <
Does the navigation fail on all pages or is it just specific ones?
Try commenting parts of your xslt out, to see if you can narrow the error down to a line or statement.
Tim
Even if i just run this, it still fails;
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
<xsl:output method="xml" omit-xml-declaration="yes" />
<xsl:param name="currentPage"/>
<!-- Input the documenttype you want here -->
<xsl:variable name="level" select="1"/>
<xsl:template match="/">
<!-- The fun starts here -->
</xsl:template>
</xsl:stylesheet>
I have also tried a completly blank xslt file - that also fails.
Hmmmm
Are you sure you're editing the right XSLT file, check in the macro that it is pointing to the right file.
Have you tried taking the macro out of your template.
This is an odd one!
Tim
I am using this line to call the xslt; <umbraco:Macro Alias="TopMenu" runat="server" />. When i remove this line from the master the error disapers but of course no top menu. When i insert it again the error apears again.
In Macros in umbraco there is a "TopMenu" item calling "TopMenu.xslt" (name and alias TopMenu).
Just tried using a couple of other xslt instead (standard xslt from umbraco (xsltsearch etc.)) - each and everyone one of them fails - same message, :-s
OK
I'm probably barking up entirely the wrong tree here but have you tried renaming the macro and XSLT file.
Also do other XSLT macros work?
Hmm - something interesting showed up now, Tried to change the name of the xslt file in umbraco and this error showed;
Error occured
System.Exception: Could not load type CommerceForUmbraco.xsltExtensions.product (C:\data\websites\bin\CommerceForUmbraco.xsltExtensions.dll) for XSLT extension C:\data\websites\bin\CommerceForUmbraco.xsltExtensions.dll. Please check config/xsltExentions.config.
at umbraco.macro.GetXsltExtensions()
at umbraco.macro.AddMacroXsltExtensions()
at umbraco.presentation.webservices.codeEditorSave.SaveXslt(String fileName, String oldName, String fileContents, Boolean ignoreDebugging)
Looking in the xsltExtensions.config this shows;
<?xml version="1.0" encoding="utf-8"?>
<XsltExtensions>
<!--
<ext assembly="/bin/name-of-dll-without-dll-extension" type="Fully.Qualified.Name.Of.Type.Including.Namespace" alias="Prefix-to-use-in-xslt" />
-->
<ext assembly="/bin/CommerceForUmbraco.xsltExtensions" type="CommerceForUmbraco.xsltExtensions.product" alias="ucProduct">
</ext>
</XsltExtensions>
Any ideas?
Hmmmm
Is the CommerceForUmbraco.xsltExtensions.dll in the bin folder?
Have you tried restarting IIS if it is.
Tim
Maybe you found a solution to the problem?
If not, try to replace the alias="ucProduct">
to
alias="c4u"> in your xsltExtensions.config
It's propably no errors in your XSLT!
is working on a reply...